package com.lee.entry;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author lee
 */
@Data
public class TableInfo  {

    @ColumnWidth(20)
    @ExcelProperty(value = "数据库", index = 0)
    String databaseName;

    @ColumnWidth(30)
    @ExcelProperty(value = "表名", index = 1)
    String tableName;

    @ColumnWidth(20)
    @ExcelProperty(value = "库表名", index = 2)
    String fullName;


    @ColumnWidth(20)
    @ExcelProperty(value = "类型", index = 3)
    String tableType;

    @ColumnWidth(20)
    @ExcelProperty(value = "行数", index = 4)
    BigDecimal numRows;

    @ColumnWidth(20)
    @ExcelProperty(value = "字节", index = 5)
    BigDecimal totalSize;

    @ColumnWidth(20)
    @ExcelProperty(value = "大小", index = 6)
    String size;

    @ColumnWidth(20)
    @ExcelProperty(value = "fileType", index = 7)
    String fileType;

    @ColumnWidth(80)
    @ExcelProperty(value = "location", index = 8)
    String location;




}
